// 自动生成模板OmsOrderReturnReason
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// omsOrderReturnReason表 结构体  OmsOrderReturnReason
type OmsOrderReturnReason struct {
	Id         *int       `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                //id
	Name       *string    `json:"name" form:"name" gorm:"comment:退货原因名;column:name;size:200;"`                 //退货原因名
	Sort       *int       `json:"sort" form:"sort" gorm:"comment:排序;column:sort;size:10;"`                     //排序
	Status     *bool      `json:"status" form:"status" gorm:"comment:启用状态;column:status;"`                     //启用状态
	CreateTime *time.Time `json:"createTime" form:"createTime" gorm:"comment:create_time;column:create_time;"` //create_time
}

// TableName omsOrderReturnReason表 OmsOrderReturnReason自定义表名 oms_order_return_reason
func (OmsOrderReturnReason) TableName() string {
	return "oms_order_return_reason"
}

type OmsOrderReturnReasonRepo interface {
}

type OmsOrderReturnReasonUsecase struct {
	repo OmsOrderReturnReasonRepo
	log  *log.Helper
}

func NewOmsOrderReturnReasonUsecase(repo GreeterRepo, logger log.Logger) *OmsOrderReturnReasonUsecase {
	return &OmsOrderReturnReasonUsecase{repo: repo, log: log.NewHelper(logger)}
}
